package com.hnucm.onlinealgstudy.service;

import com.hnucm.onlinealgstudy.dao.CollectMapper;
import com.hnucm.onlinealgstudy.dao.CommentMapper;
import com.hnucm.onlinealgstudy.pojo.ColParams;
import com.hnucm.onlinealgstudy.pojo.Collect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectServiceImpl implements CollectService{
    @Autowired
    CollectMapper collectMapper;
    @Override
    public void addCollect(Collect collect) {
        collectMapper.addCollect(collect);
    }

    @Override
    public List<Collect> findCollect(ColParams colParams) {
        return collectMapper.findCollect(colParams);
    }

    @Override
    public void deleteCollection(Integer id) {
        collectMapper.deleteCollection(id);
    }
}
